package com.ubb.dbms.domain.queryResult;

import java.util.ArrayList;
import java.util.List;

public class SelectResult {
	
	List<SelectedRow> selectedRows;
	
	public SelectResult() {
		selectedRows = new ArrayList<SelectedRow>();
	}

	public List<SelectedRow> getSelectedRows() {
		return selectedRows;
	}

	public void setSelectedRows(List<SelectedRow> selectedRows) {
		this.selectedRows = selectedRows;
	}
	
	public boolean addSelectedRow(SelectedRow singleRow) {
		return this.selectedRows.add(singleRow);
	}
	
	public boolean removeSelectedRow(SelectedRow singleRow) {
		return this.selectedRows.remove(singleRow);
	}
	
}
